<?php 
	$condition = $this->requestAction('articles/getArticles/term-condition');
	if($condition != ''){
?>
 <div class="block">
            <div class="head">
            	<span class="heading">
            		Accept Terms and Conditions
            	</span> 
            </div>
            <div class="container group">
            	<?php echo $condition[0]['Article']['short_description'];?>
            	<?php echo '<br /><hr />'.$this->Form->input('Accept', array('type' => 'checkbox','id' =>'accept','value' => $this->params['form']['value'])). '<hr />';?>
            </div>
</div>
<?php 
	}
?>
<script type = "text/javascript">
	$(function(){
		$('#accept').click(function(event){
			if($(this).is(':checked')){
				var id = $(this).attr('value');
				var url = __HOST_NAME__ + '/staffs/add/' + id;
				$(location).attr('href',url);
			}
		});
	});
</script>


